<extend name="Base/common" />

<block name='header'>
    <include file="Index/header"/>
</block>

<block name="body" >
    <div ng-controller="IndexCtrl">
        <div class="row">
            <div class="col-md-2 leftdiv">
                <!---左侧--->
                <include file="Index/left"/>
            </div>
            <div class="col-md-10" style="min-height: 700px;padding: 5px;" >
                <!---右侧开始--->
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">字段选择</h3>
                    </div>
                    <div class="panel-body">
                            <label class="checkbox-inline">
                                <input type="checkbox" ng-model='checkeboxFlag' ng-click="CheckedAll()" checked="checked">全选
                            </label> 
                            <label class="checkbox-inline"  data-ng-repeat="field in fieldList">
                                <input type="checkbox" ng-model='field.checked' ng-click="Checked()">{{field.name}}
                            </label> 
                        <br/><br/>
                        
                        <div class="form-group">
                          <label for="text">待处理字段</label>
                          <input type="text" class="form-control" ng-model='fieldNameArrayStr' placeholder="待处理字段">
                        </div>
                        
                        <div class="form-group">
                          <label for="text">生成的参数</label>
                          <input type="text" class="form-control" ng-model='requestStr' placeholder="生成的参数">
                        </div>
                        
                        <button class="btn btn-default btn-primary" ng-click='codeCreate()'>生成代码</button>
                    </div>
                </div>
                <!--数据生产界面->
                <div>

                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#curd" aria-controls="curd" role="tab" data-toggle="tab">CURD</a></li>
                    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">OneThink HTML</a></li>
                    <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
                    <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
                </ul>

                <!-- Tab panes -->
                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane active tab-pane2" id="curd">
                        
                        <div class="panel panel-default">
                            <div class="panel-heading">展示数据</div>
                            <div class="panel-body">
                               <pre class="prettyprint">
                                    <code class="language-php" >
                                        {{cURDListCode}}
                                    </code>
                               </pre>
                            </div>
                        </div>
                        
                        <div class="panel panel-default">
                            <div class="panel-heading">添加数据</div>
                            <div class="panel-body">
                               <pre class="prettyprint">
                                    <code class="language-php" >
/**
*添加
* @author 曹梦龙 <138888611@qq.com>
*/

public function add(){
     if(IS_POST){

     }else{
        $this->display();
     }
 }
     
                                        {{cURDAddCode}}
                                    </code>
                               </pre>
                            </div>
                        </div>
                        
                        <div class="panel panel-default">
                            <div class="panel-heading">修改数据</div>
                            <div class="panel-body">
                               <pre class="prettyprint">
                                    <code class="language-php" >
/**
*编辑
* @author 曹梦龙 <138888611@qq.com>
*/
public function edit(){
     if(IS_POST){

     }else{
        $this->display();
     }
 }
                                             
                                        {{cURDEditCode}}
                                    </code>
                               </pre>
                            </div>
                        </div>
                        
                        <div class="panel panel-default">
                            <div class="panel-heading">删除数据</div>
                            <div class="panel-body">
                               <pre class="prettyprint">
                                    <code class="language-php" >
                                        {{cURDDelCode}}
                                    </code>
                               </pre>
                            </div>
                        </div>
                        
                        <div class="panel panel-default">
                            <div class="panel-heading">状态修改</div>
                            <div class="panel-body">
                               <pre class="prettyprint">
                                    <code class="language-php" >
                                        {{ChangeStatusCode}}
                                    </code>
                               </pre>
                            </div>
                        </div>
                        
                        
                    </div>
                    <div role="tabpanel" class="tab-pane tab-pane2" id="profile">2</div>
                    <div role="tabpanel" class="tab-pane tab-pane2" id="messages">3</div>
                    <div role="tabpanel" class="tab-pane tab-pane2" id="settings">4</div>
                </div>

            </div>
            <!---右侧结束--->

        </div>
    </div><!-- /.container -->
</div>

</block>

<block name="script">
    <script type="text/javascript" src="__JS__/app.js"></script>
    <script type="text/javascript" src="__JS__/index.js"></script>
</block> 